export const fileExport=(txt,name)=>{
    let blob=new Blob([txt],{type:"applicationnd.openxmlformats-officedocument.spreadsheetml.sheet"});
    let a=document.createElement("a");
    a.download=name
    a.style.display='none';
    let url=window.URL.createObjectURL(blob);
    a.href=url
    document.body.appendChild(a)
    a.click();
    document.body.removeChild(a);
    window.URL.revokeObjectURL(url)
}